import request from '../utils/request';

// 获取订单列表
export function getOrderList(){
    return request.get('/admin/getorderlist',{})
}

// 获取订单详情
export function getOrderDetail(params){
    return request.get('/admin/getorderdetail',{
        params : {
            'orderId' : params
        }
    })
}

// 订单备注
export function remarkOrder(data){
    return request.post('/admin/remarkorder',data)
}

// 订单发货
export function deliverOrder(data){
    return request.post('/admin/deliverorder',data)
}

// 删除订单
export function delOrder(orderId){
    return request.delete('/admin/delorder',{
        params : {
            'orderId' : orderId
        }
    })
}
